package com.dragee.modules.work.dto;

import com.dragee.modules.work.entity.*;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 随队人员
 *
 * @author tys on 2023/4/24
 */
@Data
@NoArgsConstructor
public class TeamPerson {
    public TeamPerson (TeamAthleteEntity t) {
        if (t != null) {
            this.id = t.getId();
            this.name = t.getName();
            this.tel = t.getTel();
            this.idCard = t.getIdCard();
            this.sex = t.getSex();
            this.age = t.getAge();
        }
    }
    public TeamPerson (TeamCoachEntity t) {
        if (t != null) {
            this.id = t.getId();
            this.name = t.getName();
            this.tel = t.getTel();
            this.idCard = t.getIdCard();
            this.sex = t.getSex();
            this.age = t.getAge();
        }
    }
    public TeamPerson (TeamLeaderEntity t) {
        if (t != null) {
            this.id = t.getId();
            this.name = t.getName();
            this.tel = t.getTel();
            this.idCard = t.getIdCard();
            this.sex = t.getSex();
            this.age = t.getAge();
        }
    }
    public TeamPerson (TeamOtherEntity t) {
        if (t != null) {
            this.id = t.getId();
            this.name = t.getName();
            this.tel = t.getTel();
            this.idCard = t.getIdCard();
            this.sex = t.getSex();
            this.age = t.getAge();
        }
    }
    public TeamPerson (TeamRefereeEntity t) {
        if (t != null) {
            this.id = t.getId();
            this.name = t.getName();
            this.tel = t.getTel();
            this.idCard = t.getIdCard();
            this.sex = t.getSex();
            this.age = t.getAge();
        }
    }
    private Long id;
    private String name;
    private String tel;
    private String idCard;
    private String sex;
    private String age;
}
